﻿@model List<PopForums.ExternalLogin.ExternalUserAssociation>
@using PopForums.Controllers
@{
    ViewBag.Title = PopForums.Resources.Account + " - " + PopForums.Resources.ExternalLogins;
    Layout = "~/Areas/PopForums/Views/Shared/PopForumsMaster.cshtml";
}

<div id="TopBreadcrumb" class="navAbsolute">
    <h1>@PopForums.Resources.Account - @PopForums.Resources.ExternalLogins</h1>
    <p>
        ^ @Html.ActionLink(PopForums.Resources.Forums, "Index", ForumHomeController.Name, null, null) |
        @Html.ActionLink(PopForums.Resources.EditYourProfile, "EditProfile", "Account") | 
        @Html.ActionLink(PopForums.Resources.ChangeYourEmailPassword, "Security", "Account") |
        @Html.ActionLink(PopForums.Resources.ManageYourPhotos, "ManagePhotos", "Account")
    </p>
</div>

@if (Model.Count == 0)
{
	<p>@PopForums.Resources.NoExternalLoginsRegistered</p>
}
else
{
	<table class="stripe">
		@foreach (var item in Model)
		{
			<tr>
				<td>
					@using (Html.BeginForm("RemoveExternalLogin", "Account", new {id = item.ExternalUserAssociationID}))
					{
						<input type="submit" value="Remove"/>
					}
				</td>
				<td>@item.Issuer</td>
				<td>@item.Name</td>
			</tr>
		}
	</table>
}